<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<html>
	<head>
		<title>部门管理</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="${path}/css/backsys/ctx.css">
		<script type="text/javascript" src="${path}/js/jquery.js"></script>
		<script type="text/javascript" src="${path}/js/backsys/sysutil.js"></script>
	</head>
	<%
		//虚拟机使用的最大内存量
		double max = (Runtime.getRuntime().maxMemory() / (1024.0 * 1024)) ;
		//虚拟机中的内存总量
		double total = (Runtime.getRuntime().totalMemory() / (1024.0 * 1024)) ;
		//虚拟机中空闲的内存量
		double free = (Runtime.getRuntime().freeMemory() / (1024.0 * 1024)) ;
	%>
	
	<body>
		<div class="ctx">
			<table width="100%" class="blockTable">
				<tr>
					<td>
						<div>
							<span class="zPushBtn"><img src="${path}/images/icon018a1.gif"/><b>系统信息</b></span>
						</div>
					</td>
				</tr>
				<tr>
					<td> 
						<div style="float:left;font-size: 12px;text-align:left;">
							<a href="javascript:asyninvok('/share/initSystem','type=gc');" class="zPushBtn"><img src="${path}/images/icon021a8.gif"/><b>调用JVM垃圾回收器</b></a>
							<a href="javascript:asyninvok('/share/initSystem','type=invalidate');" class="zPushBtn"><img src="${path}/images/icon021a8.gif"/><b>强制注销所以会话</b></a>
							<a href="#" class="zPushBtn"><img src="${path}/images/icon021a8.gif"/><b>临时禁止登陆</b></a>
						</div>
					</td>
				</tr>
				
				<tr>
					<td>
						<table class="dataTable" style="float:left;">
							<thead>
								<tr class="dataTableHead">
									<td align="right" width="140">系统信息项</td><td width="250">值</td>
								</tr>
							</thead>
							<tbody>
								<tr class="dataTableBody">
									<td align="right">应用程序名称：</td>
									<td>${sysinit[0][0]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">应用程序版本：</td>
									<td>${sysinit[0][1]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">本次启动时间：</td>
									<td><fmt:formatDate pattern="yyyy-MM-dd" value="${sysinit[0][2]}"/></td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">当前己登录用户数：</td>
									<td>${totalOnlineEmp}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">操作系统名称：</td>
									<td>${sysinit[0][3]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">操作系统版本：</td>
									<td>${sysinit[0][4]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">JDK厂商：</td>
									<td>${sysinit[0][5]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">JDK版本：</td>
									<td>${sysinit[0][6]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">JDK主目录：</td>
									<td>${sysinit[0][7]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">JVM最大可用内存量：</td>
									<td><fmt:formatNumber value="<%=max%>" pattern="####.##" />MB</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">当前JVM占用的内存总数：</td>
									<td><fmt:formatNumber value="<%=total%>" pattern="####.##" />MB</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">当前JVM的空闲内存：</td>
									<td><fmt:formatNumber value="<%=free%>" pattern="####.##" />MB</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">实际可用内存量：</td>
									<td><fmt:formatNumber value="<%=max - total + free%>" pattern="####.##" />MB</td>
								</tr>
							</tbody>
						</table>	
						<table class="dataTable" style="float:left;margin-left:10px;">
							<thead>
								<tr class="dataTableHead">
									<td align="right" width="140">数据库配置项</td><td width="250">值</td>
								</tr>
							</thead>
							<tbody>
								<tr class="dataTableBody">
									<td align="right">数据库类型：</td>
									<td>${sysinit[1][0]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">数据库服务器地址：</td>
									<td>${sysinit[1][1]}</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">数据库服务器端口：</td>
									<td>${sysinit[1][2]}</td> 
								</tr>
								<tr class="dataTableBody">
									<td align="right">数据库名称：</td>
									<td>${sysinit[1][3]}</td> 
								</tr>
								<tr class="dataTableBody">
									<td align="right">用户名：</td>
									<td>${sysinit[1][4]}</td> 
								</tr>
							</tbody>
						</table>	
						<table class="dataTable" style="float:left;margin-top:23px;margin-left:10px;">
							<thead>
								<tr class="dataTableHead">
									<td align="right" width="140">授权信息项</td><td width="250">值</td>
								</tr>
							</thead>
							<tbody>
								<tr class="dataTableBody">
									<td align="right">授权给：</td>
									<td>U5-Y100-TrialUser</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">有效期至：</td>
									<td>2109-11-12 11:35:47</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">授权用户数：</td>
									<td>5</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">授权产品代码：</td>
									<td>share</td>
								</tr>
								<tr class="dataTableBody">
									<td align="right">授权MAC地址：</td>
									<td>00-19-DB-61-F9-99,00-53-45-00-00-00</td>
								</tr>
							</tbody>
						</table>	
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>
							
							
							
